/**
 * Copyright (C), 2001-2023, www.bosssof.com.cn
 * FileName: BasePaginationQuery
 * Author: Administrator
 * Date: 2023-03-31 08:41:44
 * Description:
 * <p>
 * History:
 * <author> Administrator
 * <time> 2023-03-31 08:41:44
 * <version> 1.0.0
 * <desc> 版本描述
 */
package com.bosssoft.g1.common.data.query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * @ClassName: BasePaginationQuery
 * @Description: 针对分页数据查询使用的参数对象基类，主要包含了分页的关键的信息
 * 具体的之类根据查询条件扩展查询条件
 * @Author: Administrator
 * @Date: 2023-03-31 08:41
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ApiModel("用户查询参数类")
public abstract class BasePaginationQuery implements Serializable {
    private static final long serialVersionUID = 7967181543200226205L;
    /**
     *  查询第几页的数据
     */
    @ApiModelProperty("查询的页面索引")
    @NotNull(message = "pageIndex不能为空")
    private Integer pageIndex;
    /**
     * 每页的记录数
     */
    @ApiModelProperty("单页记录数")
    @NotNull(message = "pageSize 不能为空")
    private Integer pageSize;
}
